const http = uni.$u.http

// APP账号登录
export const login = (data) => http.post('/client/auth/login', data, {custom: {auth: false}})

// 微信登录
export const wxmlogin = (data) => http.post('/client/auth/wxmlogin', data, {custom: {auth: false}})



// 首页信息
export const homeInfo = (data) => http.get('/client/common/home/info', {
	params: data,
	custom: {
		auth: false
	}
})

// 获取字典数据
export const getDictData = (data) => http.get('/client/common/dict/data', {
	params: data
})


// 文件上传
export const uploadFile = (url) => uni.$u.http.upload('/client/common/upload/file', {
	filePath: url, 
	custom: {auth: true},
	name: 'file', 
})